<div class="browse">
<% if @base_templates -%>
  <h5>基本模板</h5>
  <% @base_templates.each do |template| %>
    <%= link_to_function image_tag(url_for_file_column(template, :preview), 
                                   :id => "browse_template_preview_#{template.id}"), 
      "select_template(#{template.id})"%>
  <% end -%>
<% end -%>
<% if @relative_templates -%>
  <h5>相关模板</h5>
  <% @relative_templates.each do |template| %>
    <%= link_to_function image_tag(url_for_file_column(template, :preview), 
                                   :id => "browse_template_preview_#{template.id}"), 
      "select_template(#{template.id})"%>
  <% end -%>
<% end -%>
</div>
